package com.nbcio.demo.domain;

import com.nbcio.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serial;

/**
 * 订单主表对象 test_order_main
 *
 * @author nbacheng
 * @date 2025-04-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("test_order_main" )
public class TestOrderMain extends TenantEntity {

@Serial
private static final long serialVersionUID=1L;

    /**
     * 主键
     */
        @TableId(value = "id" )
    private Long id;

    /**
     * 订单编码
     */
    private String orderCode;

    /**
     * 客户编号
     */
    private Long customerId;

    /**
     * 下单时间
     */
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date xdDate;

    /**
     * 订单总额
     */
    private BigDecimal money;

    /**
     * 备注
     */
    private String remark;

/** 订单子表信息 */
@TableField(exist = false) // 添加此注解
private List<TestOrderGoods> testOrderGoodsList;

}
